<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>XXXX管理系统</title>
<script src="js/jquery-1.6.2.min.js" type="text/javascript"></script>
<style type="text/css">
div {
	overflow: hidden;
	*display: inline-block;
}

div {
	*display: block;
}

.login_box {
	background: url(img/loginbg.jpg) no-repeat;
	width: 602px;
	height: 416px;
	overflow: hidden;
	position: absolute;
	left: 50%;
	top: 50%;
	margin-left: -301px;
	margin-top: -208px;
}

.login_iptbox {
	bottom: 90px;
	_bottom: 72px;
	color: #FFFFFF;
	font-size: 12px;
	height: 30px;
	left: 50%;
	margin-left: -280px;
	position: absolute;
	width:540px;
	overflow: visible;
}

.login_iptbox table td {
	height: 30px;
	line-height: 30px;
}

.tdleftd {
	font-family: "宋体", font-size :   12px;
	color: #fff;
}

.login_iptbox .ipt {
	padding-left: 2px;
	height: 24px;
	line-height:24px;
	padding-top:0px;
	width: 140px;
	margin-right: 22px;
	color: #fff;
	background: url(img/ipt_bg.jpg) repeat-x;
	border: none;
	color: #000;
	overflow: hidden;
}

.login_iptbox label {
	font-size: 12px;
}

.login_iptbox .ipt_reg {
	margin-left: 12px;
	width: 46px;
	margin-right: 16px;
	background: url(img/ipt_bg.jpg) repeat-x;
	*overflow: hidden;
	text-align: left;
	padding: 2px 0 2px 5px;
	font-size: 16px;
	font-weight: bold;
}

.login_tj_btn {
	background: url(img/login_dl_btn.jpg) no-repeat 0px 0px;
	width: 52px;
	height: 24px;
	margin-left: 16px;
	border: none;
	cursor: pointer;
	padding: 0px;
	float: right;
}

.yzm {
	position: absolute;
	background: url(img/login_ts140x89.gif) no-repeat;
	width: 140px;
	height: 89px;
	right: 56px;
	top: -96px;
	text-align: center;
	font-size: 12px;
	display: none;
}

.yzm a:link,.yzm a:visited {
	color: #036;
	text-decoration: none;
}

.yzm a:hover {
	color: #C30;
}

.yzm img {
	cursor: pointer;
	margin: 4px auto 7px;
	width: 130px;
	height: 50px;
	border: 1px solid #fff;
}

.cr {
	font-size: 12px;
	font-style: inherit;
	text-align: center;
	color: #ccc;
	width: 100%;
	position: absolute;
	bottom: 58px;
}

.cr a {
	color: #ccc;
	text-decoration: none;
}
</style>
<script type="text/javascript">
	if("${login}" == "0"){
		alert("${msg}");
	}
	function formSubmit(){						
		if(jQuery.trim(jQuery("#adminName").val())==""){
			alert("用户名称不能为空！");
			jQuery("#userCode").focus();
			return false;
		}
		if(jQuery.trim(jQuery("#password").val())==""){
			alert("用户密码不能为空！");
			jQuery("#userPwd").focus();
			return false;
		}
		return true;
	}	
</script>
</head>
<body onload="javascript:document.loginForm.userName.focus();">
	<div id="login_bg" class="login_box">
		<div class="login_iptbox">
			<form id="loginForm" method="POST" action="login.htm"
				onsubmit="return formSubmit();">
				<table cellspacing="0" cellpadding="0" border="0" align="center">
					<tbody>
						<tr>
							<td>用户名称:<input id="adminName" name="adminName" size="20" />
							</td>
							<td>用户密码:<input id="password" name="password" size="20" type="password"/>
							</td>
							<td><input name="dosubmit" value="" type="submit"
								class="login_tj_btn" />
							</td>
						</tr>
					</tbody>
				</table>
			</form>
		</div>
	</div>
</body>
</html>